#include "def.h"


//确定顶点在邻接矩阵中的位置
int LocateVex(Graph G, char name[]){
    int flag=-1;
    for (int i = 0; i < G.vertexNum; i++)
    {
        if (strcmp(name,G.vexs[i].name)==0)
        {
            flag=i;
            break;
        }
    }
    return flag;
}